
#ifndef __WIFI_H__
#define __WIFI_H__
#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <regex.h>

#include "wifi_scan.h"

#define NK_USER_CONFIG_UDHCPC_SCRIPT "/usr/share/udhcpc/default.script"

int GetSignal(void);
int JN_Wifi_STA_Search(struct bss_info *bss);
int JN_Wifi_STA_Getstatus(int *connect_status);
int JN_Wifi_Stop(char *pMode);
int JN_Wifi_STA_Setup(char *essid, char *key);
void disconnect_wifi(void);

#ifdef __cplusplus
};
#endif
#endif //__WIFI_H__

